Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build script osx #167

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

altafan
Copy link

@altafan altafan commented Jun 29, 2022

Since the OSX SDK path changes depending on the XCode version installed on the machine, this updates the build script tools/build.sh so that it retrieves the OSX SDK path via xcrun --show-sdk-path instead of composing it.

This also adds the latest version of virtualenv to tools/requirements.txt. I had to manually install it to my venv every time otherwise.

Closes #166.

NOTE: the same problem affects the iOS SDK path and consequently tools/ios_env.sh. I didn't make any change there because I'm not able to test since I miss the sdk. It can eventually be fixed in a later PR or you can suggest the proper fix.

Please @lvaccaro review this.

@lvaccaro
Copy link
Member

lvaccaro commented Jul 4, 2022

Hi @altafan , thanks for the path improvement.
ack 7096bba

You could get the iOS sdk path with xcrun --sdk iphoneos --show-sdk-path, and the simulator sdk path withxcrun --sdk iphonesimulator --show-sdk-path .

For virtualenv, I have no strong opinion on adding as dependency.

@altafan
Copy link
Author

altafan commented Jul 4, 2022

@lvaccaro added fix for iphone and simulator SDK path.

As already said in the description, virtualenv must be installed globally if not present in the requirements, but the doc doesn't seem to provide any info about how to do that.
Instead of updating the doc, it seemed simpler and faster to me to just add an entry to requirements.txt to solve the problem for those users (like me) that might experience the bug.

@lvaccaro
Copy link
Member

lvaccaro commented Jul 5, 2022

be sure the exported variables are not used in the build script files before remove them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OSX] build fails
2 participants